<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Encrypt Class
 *
 */
class FLARE_Encrypt extends CI_Encrypt 
{
	/**
	 * generate_hash
	 * Custom function for whirlpool encryption
	 *
	 * @param	string
	 * @param	string
	 * @return	string
	 */
    public function generate_hash($str1, $str2)
	{
		$hash1 = sha1($str1);
		$hash2 = sha1($str1.sha1($str2));
		return hash('whirlpool', $hash1.$hash2);
	}
}

/* End of file Encrypt.php */
/* Location: ./applications/libraries/FLARE_Encrypt.php */